<template>
  <div>
    <p>
      <nuxt-link to="/mobile/page">/mobile/page</nuxt-link>
    </p>
    <button @click="test">test</button>
    <button @click="test1">test1</button>
  </div>
</template>

<script>
export default {
  name: 'mobileHome',
  methods: {
    async test() {
      const res = await this.$axios.$get('/api/user/info')
      console.log(res)
    },
    async test1() {
      const res = await this.$axios.$get('/api/app/list')
      console.log(res)
    },
  },
  head() {
    return {
      title: 'nuxt',
      meta: [
        { charset: 'utf-8' },
        {
          name: 'viewport',
          content:
            'width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=nowidth=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no',
        },
      ],
    }
  },
}
</script>

<style lang="scss" scoped></style>
